import com.qf.service.AccountService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName Demo
 * @Description TODO
 * @Author Windy
 * @Date 2022/8/31 15:31
 * @Version 1.0
 **/
public class Demo {
    @Test
    public void aopTest(){
        ApplicationContext context= new ClassPathXmlApplicationContext("bean.xml");
       AccountService accountService= (AccountService) context.getBean("factorBean");
       accountService.transfer("eric","james",5.5);
    }
}
